package com.game.center.service;

import com.game.center.messages.response.PlayerLoginResponseVo;
import com.game.center.messages.request.LoginCodeRequestParam;
import com.game.center.messages.request.LoginRequestParam;
import com.game.framework.dao.entity.RoleEntity;
import com.game.framework.dao.entity.UserInfoEntity;
import org.springframework.stereotype.Service;

@Service
public interface LoginService {

    PlayerLoginResponseVo login(LoginRequestParam loginRequestParam);

    PlayerLoginResponseVo loginCode(LoginCodeRequestParam loginParam);

    String createUserToken(String account, Integer userId);

    Integer selectUserCount(String phone);

    RoleEntity createPlayerRole(UserInfoEntity userInfo);

    //PlayerLoginResponseVo register(RegisterRequestParam registerParam, String loginIp);

    //AccountEntity selectAccount(String accountId);

    //RoleEntity createPlayerRole(AccountEntity accountEntity);

    //void logout(long userId);

    //void updatePlayer(RoleEntity roleEntity);
}
